﻿using System.Collections.Generic;
using Logger.Util;

namespace Logger.Object
{
    public class LogCode
    {
        #region Variables
        public int ErrorCode { get; set; }
        public string Message { get; set; }
        public int ErrorCount { get; set; }
        public List<LogDetail> ErrorDetail { get; set; }
        #endregion

        #region Constructors
        public LogCode()
        {
            ErrorCode = Constants.C_GENERAL_ERRORCODE;
            Message = Constants.C_GENERAL_MESSAGE;
            ErrorCount = 0;
            ErrorDetail = new List<LogDetail>();
        }

        public LogCode(int _errorCode, string _message)
        {
            ErrorCode = _errorCode;
            Message = _message;
            ErrorCount = 0;
            ErrorDetail = new List<LogDetail>();
        }

        public LogCode(int _errorCode)
        {
            ErrorCode = _errorCode;
            Message = Constants.C_GENERAL_MESSAGE;
            ErrorCount = 0;
            ErrorDetail = new List<LogDetail>();
        }
        #endregion
    }
}
